From: Maxim Ermilov Date: Tue, 27 Oct 2009 11:54:23 +0000 (+0300) Subject: Removing all favorites makes it impossible to add new ones X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10708 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3ebb0f149d542c823e3f26fdd9cc294ab663028e;p=gnome-shell.git Removing all favorites makes it impossible to add new ones Show the placeholder when all favorites are gone. https://bugzilla.gnome.org/show_bug.cgi?id=591854 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 1ded1bc61..db2b507e3 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -860,6 +860,13 @@ AppWell.prototype = { let display = new RunningWellItem(app, false); this._grid.actor.add_actor(display.actor); } + + if (this._grid.actor.get_n_children() == 1) { + let text = new Clutter.Text({ color: GenericDisplay.ITEM_DISPLAY_NAME_COLOR, + font_name: "Sans 14px", + text: _("Drag here to add favorites")}); + this._grid.actor.add_actor(text); + } }, // Draggable target interface